package day12;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Input {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        try {
            System.out.println("请输入一个数字：");
            int k = in.nextInt();
            System.out.println("您输入的是：" + k);
        }catch (Exception e){
            e.printStackTrace();//错误源头
            System.out.println("出现错误，原因是"+e);
        }
        System.out.println("输入结束了");
    }
}
